package com.buster.dumbshellarts;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class HelpActivity extends Activity {

	Button share;
	TextView helpHeader, helpContents;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.help);

		helpHeader = (TextView) findViewById(R.id.helpHeader);
		helpContents = (TextView) findViewById(R.id.helpContents);
		helpHeader.setTextColor(Color.WHITE);
		helpContents.setTextColor(Color.WHITE);

		share = (Button) findViewById(R.id.shareButton);
		share.setVisibility(View.GONE);
		share.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				// create the send intent
				Intent shareIntent = new Intent(
						android.content.Intent.ACTION_SEND);

				// set the type
				shareIntent.setType("text/plain");

				// add a subject
				shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
						"Check this cool Android game I liked!!");

				// build the body of the message to be shared
				String shareMessage = "Found this great app to play Dumb Shell Arts. (Insert URL Here)";

				// add the message
				shareIntent.putExtra(android.content.Intent.EXTRA_TEXT,
						shareMessage);

				// start the chooser for sharing
				startActivity(Intent.createChooser(shareIntent, "Select one.."));
			}
		});

	}

}
